home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Extensions… / Back2Front ƒ / Back2Front.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-20  |  1.5 KB  |  58 lines  |  [TEXT/MPS ]

  1. /*________________________________________________________
  2.  
  3.     File: Back2Front.h
  4.  
  5.     C header file for a printing extension.
  6.  
  7.     Dave Hersey
  8.     Apple Developer Technical Support
  9.  
  10.      3/22/94 - dmh - Created.
  11.  
  12.     (Note: labels are in the Mark menu.)
  13.     
  14. __________________________________________________________*/
  15.  
  16. #include <Types.h>
  17. #include <Errors.h>
  18. #include <Resources.h>
  19. #include <ToolUtils.h>
  20. #include <GXExceptions.h>
  21. #include <Collections.h>
  22. #include <GXMessages.h>
  23. #include <GXPrinting.h>
  24.  
  25.  
  26. #define kCreator                    'B2Fr'            /* Our creator type.            */
  27. #define kExtensionCollectionType    kCreator        /* The collection type we use.    */
  28.  
  29. #define r_ExtensionPanel            6000            /* The ID of our dialog panel.    */
  30. #define kExtensionTurnedOff            0                /* We're turned on.                */
  31. #define kExtensionTurnedOn            1                /* We're turned off.            */
  32.  
  33. #define kDefaultSetting            kExtensionTurnedOff    /* We're off by default.        */
  34.  
  35.  
  36. typedef struct ExtensionCollection                    /* This is our collection type.    */
  37. {
  38.     char    extTurnedOn;                            /* On/off panel item value.        */
  39.     char    fillByte;
  40. } ExtensionCollection;
  41.  
  42.  
  43. // Prototypes:
  44.  
  45. extern    long A5Size (void);                            /* We need these to set up        */
  46. extern    void A5Init (void *);                        /* our A5 world.                */
  47.  
  48. OSErr    InitGlobalData(void);
  49. OSErr    NewInitialize(void);
  50. OSErr    NewShutDown(void);
  51. OSErr    NewImageDocument(gxSpoolFile aSpoolFile, void *imageData);
  52. OSErr    NewJobPrintDialog(gxDialogResult *dlogResult);
  53. OSErr    SetUpPrintPanel(void);
  54. OSErr    GetJobCollectionItem(void *collectItem, long *collectSize,
  55.                              OSType collectType, short collectID);
  56.  
  57.  
  58.